/*
 * VendorBO.java
 *
 * Created on March 5, 2007, 8:07 PM
 */

package edu.byu.isys413.group1E.data;

/** Stores information about an employee's position
 *
 * @author Travis Kulbeth
 */
public class VendorBO {
    
    private String VendorID;
    private String Name;
    private boolean alreadyInDB;
    private boolean isDirty;
    
    /** Creates a new instance of VendorBO */
    public VendorBO() {
    }
    
    /** Creates a new instance of VendorBO using an ID
     *@param id contains the already existing id to be used for this object
     */
    public VendorBO(String id){
        setVendorID(id);
        setIsDirty(true);
    }
    
    /** Returns the Transaction Line ID
     * @return txLineID
     */
    public String getVendorID() {
        return VendorID;
    }
    
    /** Sets the transaction line id
     *@param txLineID contains ID to be used for this transaction
     */
    public void setVendorID(String VendorID) {
        setIsDirty(true);
        this.VendorID = VendorID;
    }

    /**get the name of the vendor
     * 
     * @return Name
     */
    public String getName() {
        return Name;
    }

    /**sets the name of the vendor
     * 
     * @param Name 
     */
    public void setName(String Name) {
        this.Name = Name;
        setIsDirty(true);
    }

    /**gets the alreadyInDB status
     * 
     * @return alreadyInDB
     */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }

    /**sets the alreadyInDB status
     * 
     * @param alreadyInDB 
     */
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }

    /**sets the isDirty status, so we know the object has been changed
     * 
     * @return isDirty
     */
    public boolean isIsDirty() {
        return isDirty;
    }

    /**sets the isDirty status
     * 
     * @param isDirty 
     */
    public void setIsDirty(boolean isDirty) {
        this.isDirty = isDirty;
    }
          
}//end Vendor class
